package com.ruoyi.behavior.domain.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.behavior.domain.vo.ReviewVo;
import com.ruoyi.behavior.domain.vo.UserSkuVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserReviewDto {
    @JsonIgnore
    private Long userId;
    private Long orderItemId;
    private Long skuId;
    private Integer isReviewed;
    private UserSkuVo skuInfo;
    private ReviewVo review;

    // 临时字段用于数据映射
    @JsonIgnore
    private Long reviewId;
    @JsonIgnore
    private String code;
    @JsonIgnore
    private String categoryId;
    @JsonIgnore
    private String specData;
    @JsonIgnore
    private BigDecimal price;
    @JsonIgnore
    private BigDecimal originalPrice;
    @JsonIgnore
    private String skuName;
    @JsonIgnore
    private String skuDescription;
    @JsonIgnore
    private Long stock;
    @JsonIgnore
    private Long lowStock;
    @JsonIgnore
    private BigDecimal weight;
    @JsonIgnore
    private BigDecimal volume;
    @JsonIgnore
    private Long status;
    @JsonIgnore
    private String specNameGroupRaw;
    @JsonIgnore
    private String specValueGroupRaw;
    @JsonIgnore
    private Date createdAt;
    @JsonIgnore
    private Date updatedAt;
    @JsonIgnore
    private String url;
    @JsonIgnore
    private Integer rate;
    @JsonIgnore
    private String title;
    @JsonIgnore
    private String description;
}
